﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TalkElement : MonoBehaviour {
    [SerializeField]
    Button leftBtn;
    [SerializeField]
    Button rightBtn;
    [SerializeField]
    AudioClip talkContentClip;

    public AudioClip TalkContentClip
    {
        get
        {
            return talkContentClip;
        }

        set
        {
            talkContentClip = value;
        }
    }

    // Use this for initialization
    void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}
    public void PlayClip() {
        SoundManager.Instance.PlayClip(this.talkContentClip);
    }
    public void SetElement(bool isLeft) {
        leftBtn.gameObject.SetActive(isLeft);
        rightBtn.gameObject.SetActive(!isLeft);
    }

}
